projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c660a1
)
Fix bug #17881 with infloop in decoding emacs-mule encoded text.
author
Eli Zaretskii
<eliz@gnu.org>
Mon, 30 Jun 2014 15:39:29 +0000
(18:39 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Mon, 30 Jun 2014 15:39:29 +0000
(18:39 +0300)
src/coding.c (MIN_CHARBUF_SIZE): Enlarge to 32.
src/ChangeLog
patch
|
blob
|
history
src/coding.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index b87555344f926568158a117ac3a4d4f144cd1e51..ad34152d1a3b4660ba1edbdb107c3b30e3c0c5cf 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,7
@@
+2014-06-30 Eli Zaretskii <eliz@gnu.org>
+
+ * coding.c (MIN_CHARBUF_SIZE): Enlarge to 32. (Bug#17881)
+
2014-06-30 Jan Djärv <jan.h.d@swipnet.se>
* nsmenu.m (update_frame_tool_bar): Set wait_for_tool_bar to NO
diff --git
a/src/coding.c
b/src/coding.c
index 5dbaf96840ac03f71aa5094becf96f4511cdcfe7..85a50dad91fee73630463cd62adfbc3a1b752821 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-7266,7
+7266,8
@@
produce_charset (struct coding_system *coding, int *charbuf, ptrdiff_t pos)
}
#define MAX_CHARBUF_SIZE 0x4000
-#define MIN_CHARBUF_SIZE 0x10
+/* emacs-mule decoding requires more than 16 bytes. */
+#define MIN_CHARBUF_SIZE 0x20
#define ALLOC_CONVERSION_WORK_AREA(coding, size) \
do { \